package top.xchch.creational.adapter.classadapter;

public class VoltageAdaptor extends Voltage220V implements IVoltage5V {
    @Override
    public int output5V() {
        int src = output220V();
        // 转成5v
        System.out.println("使用适配器, 电压转为5v");
        int dest = src / 44;
        return dest;
    }
}
